$(document).ready(function (){
    function add(itemId) {
        // event.preventDefault();

        $.ajax({
            type: 'GET',
            url: '/user/addToCart?categoryId=${sessionScope.category.categoryId}',
            success: function (data) {
                console.log(data);
                if(data.status === 1){
                    console.log("sss")
                }else{
                    console.log("err")
                }
            },
            error: function (errorMsg) {
                console.log(errorMsg);
            }
        });
    }
});